#include <stdio.h>

int main() {
    int a, b;
    scanf("%d %d", &a, &b);
    
    long long result = 1;
    
    for (int i = 0; i < b; i++) {
        result *= a;
    }
    
    printf("%lld\n", result);
    
    return 0;
} 